#include <stdio.h>
#include <math.h>
#include <windows.h>

int main()
{
    SetConsoleOutputCP(65001);
    double a, b, c, x1, x2, dlt;

    printf("请输入方程式的三个变量");
    scanf("%lf %lf %lf", &a, &b, &c);

    dlt = b * b - 4 * a * c;
    x1 = (-b + sqrt(dlt)) / 2 / a;
    x2 = (-b - sqrt(dlt)) / 2 / a;

    printf("x1 = %f x2 = %f\n", x1, x2);
    scanf("%lf", &a);

    return 0;
}